package wangjg.security.resource.factory.db.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import wangjg.security.resource.factory.db.dao.AuthorityDAO;
import wangjg.security.resource.factory.db.entity.Authority;

@Service
@Transactional
public class AuthorityService {

	@Autowired
	private AuthorityDAO dao;
	
	
	public Authority get(Integer id){
	  return this.dao.findById(id);
	}
}
